<div style="border:1px solid gray;padding:10px;width:400px;">
<?php $model=new DepositRatesMin?>
<table cellpadding="0" cellspacing="0">
        <tr>
                <td><div class="name_param sz11">Мин. сумма пополнения:</div></td>
                <td><div class="name_param sz11">Валюта</div></td>
        </tr>
        <tr>
                <td style="padding-right:5px;">
                    <?php echo $form->textField($model, 'depo_min', array('class' => 'small','style'=>'')); ?>
                    <?php echo $form->error($model, 'depo_min'); ?>
                </td>
                <td>
                        <div class="select_adjustment valuta">
                                <?php echo $form->dropDownList($model, 'currency_id', CHtml::listData(Currencies::model()->findAll(), 'id', 'code'), array('id' => 'valuta2', 'class' => 'jcalendar-select-val','style'=>'width:50px;')); ?>
                                <?php echo $form->error($model, 'currency_id'); ?>
                        </div>
                </td>
        </tr>
</table>

<?php
    echo CHtml::ajaxLink('<i style="color:red;">+ Добавить</i>', '/banks/DepositsRateMinAjaxAdd/'.$ins_id, array(
        'type' => 'POST',
        'success'=>
                  'function(data){
                      $("#depoMinBuf").append(data);
                   }'  
    ),
    array(
        'type' => 'submit',
        'class'=>'green sz11',
    ));
?>

<script type="text/javascript">
        $(document).ready(function(e) {  
                $("#valuta2").msDropDown();
        });
        function delRateMin(id){
            $.ajax({
                url: "/banks/DepositsRateMinAjaxDel/"+id,
                success: function(data){
                    $("#itemRateMin"+id).remove();
                }
            });
        }
</script>
</div>